import request from '@/utils/request'

// 查询形变图列表
export function listDeformation(query) {
  return request({
    url: '/radar/deformation/list',
    method: 'get',
    params: query
  })
}

// 查询形变图详细
export function getDeformation(atTime) {
  return request({
    url: '/radar/deformation/' + atTime,
    method: 'get'
  })
}

// 新增形变图
export function addDeformation(data) {
  return request({
    url: '/radar/deformation',
    method: 'post',
    data: data
  })
}

// 修改形变图
export function updateDeformation(data) {
  return request({
    url: '/radar/deformation',
    method: 'put',
    data: data
  })
}

// 删除形变图
export function delDeformation(atTime) {
  return request({
    url: '/radar/deformation/' + atTime,
    method: 'delete'
  })
}
